package com.example.mapper;

import com.example.domain.dto.IdNameDto;
import com.example.domain.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author TXX
* @description 针对表【role】的数据库操作Mapper
* @createDate 2023-02-05 01:37:46
* @Entity .domain.com.example.domain.entity.Role
*/
@Repository
public interface RoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List selectAll();

    int updateIsDeleteById(Integer id);

    Role selectByRoleName(String roleName);

    Integer addRole(String roleName);

    int updateRoleNameById(IdNameDto id);
}
